SQL-Relay: An Event-Driven Rule-Based Database Gateway

نویسندگان

  • Qingsong Yao
  • Aijun An
چکیده

Database users often submit similar queries to retrieve certain information from the database. We use user access event to represent a set of similar queries. A user access event contains an SQL template and a set of parameters, where the value of a parameter can be a constant or a variable. For example, event (“select name from customer where id =%”,101) represents a single query which retrieves the name of customer 101, while event (“select name from customer where id =%”,g cid) represents a set of queries which retrieve the name of given customer. The event execution orders are represented by using dependency graphs, which are called user access paths. In this paper, we propose an event-driven rule-based database gateway, SQLRelay. It makes use of user access patterns to improve query performance. The principle of our solution is as follows. For each frequent user access event (i.e., the frequency of the event is higher than a predefined threshold), we predefine a set of execution rules. When a query is submitted, we find the best matched event, and execute the predefined rules associated with it. There are three kinds of rules: global rewriting rules, local rewriting rules and prefetching rules. A global rewriting rule aims to rewrite the current event, e.g., make use of indices, materialized views, to get a better response time. A prefetching rule pre-fetches the answer of a query to be submitted according to the current request sequence. In some cases, semantic relationships exist between the queries of a user access path, thus a local rewriting rule can make use of such semantic relationship to rewrite the current query to answer multiple queries. For example, if we know a user will submit a query whose answer contains that of the current query, we can submit it instead of the current query to the server, and use the query result to answer both queries.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Agent-Based Approach to Extending the Native Active Capability of Relational Database Systems

Event-condition-action (or ECA) rules are used to capture active capability. While a number of research prototypes of active database systems have been built, ECA rule capability in Relational DBMSs is still very limited. In this paper, we address the problem of turning a traditional database management system into a full-fledged active database system without changing the underlying system. Th...

متن کامل

Data-Driven Approaches to Improve the Quality of Clinical Processes: A Systematic Review

Background: Considering the emergence of electronic health records and their related technologies, an increasing attention is paid to data driven approaches like machine learning, data mining, and process mining. The aim of this paper was to identify and classify these approaches to enhance the quality of clinical processes. Methods: In order to determine the knowledge related to the research ...

متن کامل

Active Object-Relational Mediators

This paper describes an active object-oriented mediator for the enforcement of global consistency between relational legacy databases. We discuss the problem of integrating several local relational systems into a federated system by the usage of an object-oriented mediator system. We explore how relational DBMSs can be enhanced to signal local updates that may violate global constraints without...

متن کامل

Active Database Systems for Monitoring and Surveillance

In many intelligence and security tasks it is necessary to monitor data in database in order to detect certain events or changes. Currently, database systems offer triggers to provide active capabilities. Most triggers, however, are based on the Event-Condition-Action paradigm, which can express only very primitive events. In this paper we propose an extension of traditional triggers in which t...

متن کامل

Formal Semantics and Soundness of a Translation from Event-B Actions to SQL Statements

The EventB2SQL tool translates Event-B models to persistent Java applications that store the state of the model in a relational database. Most Event-B assignments are translated directly to SQL database modification statements, which can then be executed against the database. In this work, we present a formal semantics for and prove the soundness of the translation of sets of assignment stateme...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003